package com.springboot.astra.bean;

import java.util.List;

public class Resource {
    private Integer resourceId;
    private String resourceName;
    private String resourceKey;
    private String uri;
    private String level;
    private Integer pId;
    private List<Resource> children;

    public Resource() {
    }

    public Resource(Integer resourceId, String resourceName, String resourceKey, String uri, String level, Integer pId, List<Resource> children) {
        this.resourceId = resourceId;
        this.resourceName = resourceName;
        this.resourceKey = resourceKey;
        this.uri = uri;
        this.level = level;
        this.pId = pId;
        this.children = children;
    }


    public Integer getpId() {
        return pId;
    }

    public void setpId(Integer pId) {
        this.pId = pId;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public Integer getResourceId() {
        return resourceId;
    }

    public void setResourceId(Integer id) {
        this.resourceId = id;
    }

    public String getResourceName() {
        return resourceName;
    }

    public void setResourceName(String resourceName) {
        this.resourceName = resourceName;
    }

    public String getResourceKey() {
        return resourceKey;
    }

    public void setResourceKey(String resourceKey) {
        this.resourceKey = resourceKey;
    }

    public String getUri() {
        return uri;
    }

    public void setUri(String uri) {
        this.uri = uri;
    }

    public List<Resource> getChildren() {
        return children;
    }

    public void setChildren(List<Resource> children) {
        this.children = children;
    }
}
